#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using UTable.Input;
using UTable.Input.MultiTouch;
using UTable.Objects;
using UTable.Objects.Controls;
using System.Collections.ObjectModel;

namespace UTable.Tests
{
    /// <summary>
    /// Interaction logic for UComboBoxTest.xaml
    /// </summary>
    public partial class UComboBoxTest : UObject
    {
        public UComboBoxTest()
        {
            InitializeComponent();
            Files.Add("File 1");
            Files.Add("File 2");
            Files.Add("File 3");
            Files.Add("File 4");
            //Files.Add("File 5");
            //Files.Add("File 6");
            //Files.Add("File 7");
            //Files.Add("File 8");
            //Files.Add("File 9");
            //Files.Add("File 10");
            //Files.Add("File 11");
            //Files.Add("File 12");
            this.Loaded += new RoutedEventHandler(UComboBoxTest_Loaded);
        }

        void UComboBoxTest_Loaded(object sender, RoutedEventArgs e)
        {
            FileBox.SelectedIndex = 2;
        }

        public ObservableCollection<String> Files
        {
            get { return (ObservableCollection<String>)GetValue(FilesProperty); }
            set { SetValue(FilesProperty, value); }
        }

        public static readonly DependencyProperty FilesProperty =
            DependencyProperty.Register("Files", typeof(ObservableCollection<String>), typeof(UComboBoxTest), new UIPropertyMetadata(new ObservableCollection<String>()));


    }
}
